﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Gype.UI;
using SKYPE4COMLib;

namespace Gype.GUI
{
    internal static class ImageCollection
    {
        public static Image DefaultAvatar { get; private set; }
        public static Image ArrowExpand { get; private set; }
        public static Image ArrowCollapse { get; private set; }

        public static Dictionary<TOnlineStatus, Image> OnlineImageList = new Dictionary<TOnlineStatus, Image>();

        public static void Load(Rendertarget target)
        {
            DefaultAvatar = Image.FromGDI(target, Images.DefaultAvatar);

            OnlineImageList.Add(TOnlineStatus.olsOnline, Image.FromGDI(target, Images.IconOnline));
            OnlineImageList.Add(TOnlineStatus.olsOffline, Image.FromGDI(target, Images.IconOffline));
            OnlineImageList.Add(TOnlineStatus.olsAway, Image.FromGDI(target, Images.IconAway));
            OnlineImageList.Add(TOnlineStatus.olsDoNotDisturb, Image.FromGDI(target, Images.IconDND));
            OnlineImageList.Add(TOnlineStatus.olsNotAvailable, Image.FromGDI(target, Images.IconUnknown));
            OnlineImageList.Add(TOnlineStatus.olsSkypeMe, OnlineImageList[TOnlineStatus.olsOnline]);
            OnlineImageList.Add(TOnlineStatus.olsSkypeOut, OnlineImageList[TOnlineStatus.olsOffline]);
            OnlineImageList.Add(TOnlineStatus.olsUnknown, OnlineImageList[TOnlineStatus.olsNotAvailable]);

            ArrowExpand = Image.FromGDI(target, Images.arrow_expand);
            ArrowCollapse = Image.FromGDI(target, Images.arrow_collapse);
        }
    }
}
